#pragma once
#include "D:\\softAPP\\cprodll\\cpp-httplib\\httplib.h"
#include <iostream>
#include "json.hpp"
#include<mysql.h>
class CServer
{
public:
	CServer();
	void doServer();
	void linkToDatabase();
	void receFromClient();
	void receDelete();
	//static void Getfun(const httplib::Request& req, httplib::Response& res);
	//static void Postfun(const httplib::Request& req, httplib::Response& res);
private:
	static CServer* s_Server;
	httplib::Server m_Svr;
	MYSQL m_mySql;
	MYSQL_RES* m_resSql;
	MYSQL_ROW m_Row;
	httplib::Headers m_headers;
};

